package experiment1;

/**
 * @Auther:云尚学Java
 * 汽车乘客问题
 */
public class Test2 {

    public static int station(int n){
        if(n<7){
            return  (2*(station(n+1)+n-7));
        }else {
            return (6);
        }
    }
    public static void main(String args[]){
        int n;
        n=station(1);
        System.out.println("发车时上车有"+n+"人");
    }
}
